package top.malegod.model;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;

/**
 * Create by IntelliJ IDEA
 *
 * @author: AbelEthan
 * @date-Time: 2018/5/23 14:13
 * @description:  订单
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Order {

  private String id;

  private Integer categoryId;

  private String carId;

  private String pos1;

  private String pos2;

  private Double distance;

  private Double price;

  private Integer status;

  private Date createTime;

  private String userId;

  public Order() {
  }

  public Order(String id, Integer categoryId, String carId, String pos1, String pos2,
      Double distance, Double price, Integer status, Date createTime, String uid) {
    this.id = id;
    this.categoryId = categoryId;
    this.carId = carId;
    this.pos1 = pos1;
    this.pos2 = pos2;
    this.distance = distance;
    this.price = price;
    this.status = status;
    this.createTime = createTime;
    this.userId = uid;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public Integer getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(Integer categoryId) {
    this.categoryId = categoryId;
  }

  public String getCarId() {
    return carId;
  }

  public void setCarId(String carId) {
    this.carId = carId;
  }

  public String getPos1() {
    return pos1;
  }

  public void setPos1(String pos1) {
    this.pos1 = pos1;
  }

  public String getPos2() {
    return pos2;
  }

  public void setPos2(String pos2) {
    this.pos2 = pos2;
  }

  public Double getDistance() {
    return distance;
  }

  public void setDistance(Double distance) {
    this.distance = distance;
  }

  public Double getPrice() {
    return price;
  }

  public void setPrice(Double price) {
    this.price = price;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  @Override
  public String toString() {
    return "Order{" +
        "id='" + id + '\'' +
        ", categoryId=" + categoryId +
        ", carId='" + carId + '\'' +
        ", pos1='" + pos1 + '\'' +
        ", pos2='" + pos2 + '\'' +
        ", distance=" + distance +
        ", price=" + price +
        ", status=" + status +
        ", createTime=" + createTime +
        ", userId='" + userId + '\'' +
        '}';
  }
}
